package com.lotterymanage.service;

import com.lotterymanage.page.Pagination;

import org.springframework.transaction.annotation.Transactional;

import com.lotterymanage.domain.User;

/**
 * 用户service接口.
 * @author lxz
 * @date Apr 22, 2010
 */
public interface UserService {

    /**
     * 增加用户.
     * @param user User
     * @throws Exception Exception
     */
    @Transactional
    void add(final User user) throws Exception;

    /**
     * 分页查找.
     * @param user User
     * @return Pagination
     */
    Pagination findPage(final User user);
}
